﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PatternFactory
{
    public class Factory1 : IFactory
    {
        public IFactoryMobai ifactoryMobai()
        {
            return new CarMobai();
        }

        public IFactoryTesla ifactoryTesla()
        {
            return new CarTesla();
        }
    }


    public class Factory2 : IFactory
    {
        public IFactoryMobai ifactoryMobai()
        {
            return new CarMobai();
        }

        public IFactoryTesla ifactoryTesla()
        {
            return new CarTesla();
        }
    }

}

